package com.oreilly.justspring.core.ch1.ex13;

import javax.sql.DataSource;

import com.oreilly.justspring.core.ch1.IReader;

/**
 * Dummy implementation of DatabaseReader
 * 
 * @author kondama
 * 
 */
public class DatabaseReader implements IReader {

  private DataSource dataSource = null;

  /**
   * Override with data fetch functionality
   */
  @Override
  public String read() {
    return null;
  }

  public void setDataSource(DataSource dataSource) {
    this.dataSource = dataSource;
  }

  public DataSource getDataSource() {
    return dataSource;
  }

}
